﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpApplication.InPut
{
    public class InPut_EssService
    {   
            public string? taskCode { get; set; }//任务号
            public string? eventType { get; set; }//任务类型
                                                 //1.task：上报任务状态
                                                 //2.task_allocated: 上报任务  分配给机器人
                                                 //3.tote_load：上报取箱状态
                                                 //4.tote_unload：上报放箱状态
                                                 //5.robot_reach：机器人到达工作站
                                                 //6.weight：称重事件回调
                                                 //7.rfid：RFID 识别事件回调
            public string? status { get; set; }//success：成功 fail：失败cancel：取消suspend：挂起
            public string? containerCode { get; set; }//容器编号
            public string? locationCode { get; set; }//工作位编码
            public string? robotCode { get; set; }//机器人编码
            public string? stationCode { get; set; }//工作站编码
            public string? message { get; set; }//信息
            public string? isLocationHasContainer { get; set; }//库位是否有容器，盘点任务才有该返回值
            public string? isContainerOnLocationMatchRecord { get; set; }//
        
    }

    public class InPut_EssService2
    {
        public string eventType { get; set; }//location_abnormal：工作位异常  robot_abnormal：机器人异常
        public object robotCode { get; set; }
        public string locationCode { get; set; }
        public string stationCode { get; set; }
        public string containerCode { get; set; }
        public string message { get; set; }
        public object solution { get; set; }
        public long updateTime { get; set; }
    }

    public class InPut_EssService3
    {
        [Required]

        //事件类型  灭灯LIGHT_OFF
        public string eventCode { get; set; }
        public string? controllerCode { get; set; }
        //缓存架位置
        public string? tagCode { get; set; }
        [Required]
        //标签数字
        public string display { get; set; }
        [Required]
        public int status { get; set; }
        [Required]
        public int signal { get; set; }
    }
}
